package com.epoint.JenkinsExtension;

public class Demo {
    public static void main(String[] args) throws Exception {
        ClientInfo clientInfo = new ClientInfo();
        clientInfo.setUrl("http://localhost:8080/");
        clientInfo.setUserName("chenyc");
        clientInfo.setPassWord("111111");
        JenkinsClient client = JenkinsClient.getInstance(clientInfo);
        client.InitCrumb();
        client.Build("test");
       String config= client.GetJobConfig("test");
       System.out.println(config);

    }
}
